# 设置基础镜像
FROM python:3.10

#COPY ./forum /usr/local/forum

# 设置工作目录
WORKDIR /usr/local/forum

# 复制所需python包的离线压缩包
COPY ./packages.tar.gz /usr/local/tem/

# 构建镜像时做的事情：下载相关依赖
RUN tar -xzvf /usr/local/tem/packages.tar.gz -C /usr/local/tem/ && \
        pip install /usr/local/tem/packages/* && \
        rm -rf /usr/local/tem && \
		apt update && \
		apt install -y netcat-traditional
